<?php
/**
 * Created by PhpStorm.
 * User: kaycn
 * Date: 18-9-12
 * Time: 下午9:54
 */
$http = new swoole_http_server("172.20.10.5", 9501);
$http->on('request', function ($request, $response) {
    $response->header("Content-Type","application/json");
    $response->header("charset","utf8");
    if($request->get["test"]==200){
        echo (new Jpay())->get();
    }


});
$http->start();